# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import QDialog
import qtawesome as qta

from global_data.glabal_data import GlobalData


class ModalMainWindow(QDialog):
    def __init__(self, main_window):
        super().__init__()
        self.main_window = main_window
        self.main_window.setParent(self)
        self.open()

    def open(self):
        self.main_window.show()
        self.setWindowIcon(qta.icon(GlobalData.SYS_ICON))
        self.exec_()

    def close(self):
        self.close()

if __name__ == '__main__':
    print("Python")
